<?php
namespace Admin\Controller;
use Think\Controller;
class HomeController extends BaseController {

	public function index()
	{
		$article_list = M('article')->field(true)->select();
		$type_name = array (
			'0' => '日记',
			'1' => '杂谈',
			'2' => '隐私'
			);
		$this->assign('article_list', $article_list);
		$this->assign('type_name', $type_name);
		$this->display();
	}

	

}